package com.xydtech.ecard.statistics.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.xydtech.common.annotation.Excel;
import com.xydtech.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 电子名片报告查询记录对象 ecard_report_query
 *
 * @author xydtech
 * @date 2022-02-24
 */
public class EcardReportQuery extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String cname;

    /** 证件号码 */
    @Excel(name = "证件号码")
    private String idNo;

    /** 客户类型            1-个人            2-企业 */
    @Excel(name = "客户类型            1-个人            2-企业")
    private String custType;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String telNo;

    /** 查询时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "查询时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date qurtyTime;

    /** 查询人 */
    @Excel(name = "查询人")
    private Long userId;

    /** 查询机构 */
    @Excel(name = "查询机构")
    private Long deptId;

    /** 报告路径 */
    @Excel(name = "报告路径")
    private String reportUrl;
    /** 查询人 */
    private String userName;

    /** 查询机构 */
    private String deptName;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCname() {
        return cname;
    }

    public void setIdNo(String idNo) {
        this.idNo = idNo;
    }

    public String getIdNo() {
        return idNo;
    }

    public void setCustType(String custType) {
        this.custType = custType;
    }

    public String getCustType() {
        return custType;
    }

    public void setTelNo(String telNo) {
        this.telNo = telNo;
    }

    public String getTelNo() {
        return telNo;
    }

    public void setQurtyTime(Date qurtyTime) {
        this.qurtyTime = qurtyTime;
    }

    public Date getQurtyTime() {
        return qurtyTime;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setDeptId(Long deptId) {
        this.deptId = deptId;
    }

    public Long getDeptId() {
        return deptId;
    }

    public void setReportUrl(String reportUrl) {
        this.reportUrl = reportUrl;
    }

    public String getReportUrl() {
        return reportUrl;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("cname", getCname())
                .append("idNo", getIdNo())
                .append("custType", getCustType())
                .append("telNo", getTelNo())
                .append("qurtyTime", getQurtyTime())
                .append("userId", getUserId())
                .append("deptId", getDeptId())
                .append("reportUrl", getReportUrl())
                .append("userName", getUserName())
                .append("deptName", getDeptName())
                .toString();
    }
}